Programmable Microcontrollers with Applications: MSP430 LaunchPad with CCS and Grace by Unsalan Cem & Gurhan H. Deniz

Programmable Microcontrollers with Applications: MSP430 LaunchPad with CCS and Grace by Unsalan Cem & Gurhan H. Deniz

Author:Unsalan, Cem & Gurhan, H. Deniz [Unsalan, Cem]
Language: eng
Format: epub
Tags: -
Publisher: McGraw-Hill Education
Published: 2013-08-28T23:00:00+00:00


Figure 10.11 Timer_A up mode.

• Up/Down Mode: In this mode, first the timer counts up until it reaches the value in the TACCR0. Then counting is inverted, and the timer counts down from TACCR0 to zero as shown in Fig. 10.12. The TAIFG bit is set when the TAR value changes from one to zero in counting down. Also, the CCIFG bit is set when the TAR value changes from TACCR0-1 to TACCR0 in counting up. The timer period for this mode can be calculated as period = (2×TACRR0)/ fCLK.

Figure 10.12 Timer_A up/down mode.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.